<template>
    <div>
        <h1>{{ msg }}</h1>
    </div>
    </template>
    <script>
export default{
    setup(){
        //子组件的setup应返回一个Promise
        return new Promise((resolve,reject)=>{
            setTimeout(()=>{
                resolve(
                    {
                        msg:"Hello,Real Content!"
                    }
                )
            },2000)
        })
    }
};
</script>
<style>
</style>